package java2_28;

import java.util.Scanner;

//（抄）2：已知1英寸(in)=2.54厘米(cm)。输入英寸数，转换成厘米，并输出
public class homeWork_2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入英寸数：");
        double in = scanner.nextDouble();
        double b = 2.54;

        double result = in*b;
        System.out.println("输出的值为："+result+"cm!");
    }
}
